package com.jt.tenant.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;

import com.jt.tenant.app.JTApplication;
import com.zcx.helper.activity.AppV4Activity;

import cn.jpush.android.api.JPushInterface;
import qiu.niorgai.StatusBarCompat;

/**
 * Created by Administrator on 2016/2/2.
 */
public class JTV4Activity extends AppV4Activity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        JTApplication.INSTANCE.addActivity(this);

    }

    @Override
    public void setContentView(int layoutResID) {

        super.setContentView(layoutResID);

        JTApplication.ScaleScreenHelper.loadView((ViewGroup) getWindow().getDecorView());

        StatusBarCompat.translucentStatusBar(this,true);

    }

    @Override
    protected void onResume() {

        super.onResume();

        JPushInterface.onResume(this);

    }

    @Override
    protected void onPause() {

        super.onPause();

        JPushInterface.onPause(this);

    }

    @Override
    protected void onDestroy() {

        super.onDestroy();

        JTApplication.INSTANCE.finishActivity(this);

        System.gc();

    }

    public void onBack(View v){

        finish();

    }

    public void onSettingClick(View v){

//        startActivity(new Intent(this,SettingActivity.class));

    }

    public void onPersonClick(View v){

//        startActivity(new Intent(this,PersonActivity.class));

    }

    public void onBottomClick(View v){


    }

}
